<?php

session_start();
include '../classes/db.php';
include '../classes/PaymentHandler.php';

$regno=$_GET['regno'];
$subgr=$_GET['subgr'];

$x=new DbConnect();
$con=$x->getConnection();

$pay=new PaymentHandler();
$pay->setRegno($regno);
$pay->setSubgr($subgr);
$pay->setConnect($con); 

$result=$pay->paymentAdd($_SESSION['user']);
echo $result;

?>